import {createRouter,createWebHashHistory} from "vue-router"
import {routes} from "./routes"
export const router =createRouter({
    history:createWebHashHistory(),
    routes:routes,
    scrollBehavior(to, from, savedPosition) {
        // 始终滚动到顶部
        return { top: 0 }
      },
})